<html>
<head>
<link rel="stylesheet" href="<?php echo base_url() . 'assets/js/themes/base/jquery.ui.all.css'; ?>"/>
	<script src="<?php echo base_url() . 'assets/js/jquery-1.9.1.js'; ?>"></script>
	<script src="<?php echo base_url() . 'assets/js/ui/jquery.ui.core.js'; ?>"></script>
	<script src="<?php echo base_url() . 'assets/js/ui/jquery.ui.widget.js'; ?>"></script>
	<script src="<?php echo base_url() . 'assets/js/ui/jquery.ui.datepicker.js'; ?>"></script>
	<script>
		$(function() {
			$("#created_date").datepicker();
		});
	</script>
</head>
<body>
<?php echo validation_errors(); ?>
<?php echo form_open_multipart("article/Article/create"); ?>
<?php echo anchor(base_url(), "Home"); ?>
<table>
  <tr>
    <td><label for="title">Title</label></td>
    <td><input type="text" name="title" id="title" value="<?php echo set_value('title'); ?>"/></td>
  </tr>
  <tr>
    <td><label for="image_path">Image</label></td>
    <td><input type="file" name="image_path" id="image_path" value="<?php echo set_value('image_path'); ?>"/></td>
  </tr>
  <tr>
    <td><label for="created_date">Created date</label></td>
    <td><input type="text" name="created_date" id="created_date" value="<?php echo set_value('created_date'); ?>"/></td>
  </tr>
  <tr>
    <td><label for="summary">Summary</label></td>
    <td><input type="text" name="summary" id="summary" value="<?php echo set_value('summary'); ?>"/></td>
  </tr>
  <tr>
    <td><label for="catalog_id">Catalog</label></td>
    <td>
    	<select name="catalog_id">
    	<?php foreach ($parent_list as $catalog) {?>
    		<option value="<?php echo $catalog -> id; ?>" <?php echo set_select('catalog_id', $catalog->id)?>><?php echo $catalog -> catalog_name; ?></option>
    	<?php } ?>
    	</select>
    </td>
  </tr>
  <tr>
  	<td><input type="submit" value="Submit"/></td>
  	<td></td>
  </tr>
</table>
<?php echo form_close(); ?>
</body>
</html>